﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<?php
@session_start();
/*
 *    A Part of snock project
 *       Author king-of-war
 *      Last modified 2009-4-6
 *    default page
 */
$mtime = explode(' ', microtime());
$pagestarttime = $mtime[1] + $mtime[0];

$root_path='../';
/*
 *
 * check identify
 */
include_once $root_path.'admin/class/verify.class.php';
$a=new verify($root_path);
$a->identity_check(2);



function check3($funcname,$func="getenv")
{
	if ($func($funcname))
	{	$message=$func($funcname);	}
	else
	{	$message='服务器不支持显示数据';	}
	return $message;
}

?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
<title>管理区域</title>
</head>

<body>
<div id="man_zone">
  <table width="99%" border="0" align="center"  cellpadding="3" cellspacing="1" class="table_style">
    <tr>
      <td width="22%" class="left_title_1">服务器时间</td>
      <td width="78%"><?php echo date("Y年m月d日 h:i:s",time());?></td>
    </tr>
    <tr>
      <td class="left_title_2">服务器空间</td>
      <td><?php echo intval(diskfreespace(".") / (1024 * 1024)).'Mb';?></td>
    </tr>
    <tr>
      <td class="left_title_1">服务器域名/IP地址</td>
      <td><?php echo check3("SERVER_NAME");?>/<?php echo check3("SERVER_ADDR");?></td>
    </tr>
    <tr>
      <td class="left_title_2">服务器解译引擎</td>
      <td><?php echo check3("SERVER_SOFTWARE");?></td>
    </tr>
    <tr>
      <td class="left_title_1">Web服务端口</td>
      <td><?php echo check3("SERVER_PORT");?></td>
    </tr>
    <tr>
      <td class="left_title_2">本文件路径</td>
      <td><?php echo check3("SCRIPT_FILENAME");?></td>
    </tr>
    <tr>
      <td class="left_title_1">PHP版本</td>
      <td><?php echo PHP_VERSION;?></td>
    </tr>
    <tr>
      <td class="left_title_2">PHP运行方式</td>
      <td><?php echo strtoupper(php_sapi_name());?></td>
    </tr>
    <tr>
      <td class="left_title_1">Zend引擎版本</td>
      <td><?php echo zend_version();?></td>
    </tr>
    <tr bgcolor="#FFFFFF">
      <td class="left_title_2" >
        <div align="right">Processed in </div></td>
      <td><?php
	$mtime     = explode(' ', microtime());
	$pagetotaltime = number_format(($mtime[1] + $mtime[0] - $pagestarttime), 6);
	echo $pagetotaltime." second(s)";?></td>
    </tr>
  </table>
</div>
</body>
</html>

